<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="static/base64.js" type="application/javascript"></script>
</head>
<body>

</body>
<script>
    let message="admin:admin";
    let b = new Base64();
    let encoded = b.encode(message);
    alert("加密了的结果:"+encoded);

    let decoded = b.decode(encoded);
    alert("加密了的结果:"+encoded+" 解密了的结果:"+decoded);
</script>
</html>